package com.hom.test;

import java.util.Scanner;
//数组扩容
public class FourTest2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入数字");
        int one = input.nextInt();
        int[] nums = {32,53,25,23};
        System.out.println(nums.length);
        int[] newNums =new int[nums.length+1];

        for(int i = 0 ; i<nums.length; i++){
            newNums[i] = nums[i];
        }
        newNums = nums;

        nums[nums.length-1] = one;
        for(int num: nums){
            System.out.println(num);
        }

    }
}
